package com.aaa.arouterone.testcoroutines

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

/**
 * @Description:  viewModel
 * @Author:  lfc
 * @Email:    iamlifuchang@163.com
 * @CreateTime:     2021/3/31 11:49
 * @UpdateRemark:   viewModel
 */
class CoroutinesViewModel : ViewModel() {
    var nameLiveData = MutableLiveData<String>()

    //Main-safe， 意味着可以直接从UI线程启动
    fun checkThePerson() {
        // Dispatchers.Main可以省略

    }
}